import java.util.Random;
public class Random6 {
    public static void main(String[] args){
        //生成1-6的随机数整数random()生成
        Random random=new Random();
            int num=random.nextInt(6);
            int randomNum=num+1;
            System.out.println("题目："+randomNum);
    }

}